/* *********************************************************************
	AUTHOR: QH_SOLEDAD
	DATE: 31-10-2010
	PURPOSE: FRAMEBUFFER
***********************************************************************/

#include "head.h"

int main(int argc, char * argv[])
{
	fb_info my_fb;
	int length = (my_fb.w * my_fb.h * my_fb.bpp) / 8;
	if(init(&my_fb) < 0)
	{
		printf("Initialize fialed\n");
		return 1;
	}

#if 1
	fb_chess_map(my_fb, 280, 40, 720, 0x00000000);
	
	save_chess(my_fb);	
#endif


	fb_chess_play(my_fb);	
	munmap(my_fb.fbmem, length);
	return 0;


}

